<?php

namespace app\validate;

use core\validate\ValidateBase;

class UserMessage extends ValidateBase
{
    protected $rule =   [
        'recipient' => 'require|number',
        'title'     => 'require',
    ];

    protected $message  =   [
        'recipient.require' => '信件接收者必填',
        'recipient.number'  => '信件接收者格式错误',
        'title.require'     => '信件标题必填',

    ];
}
